import Vue from "vue";
// 按需引入组件
import { Button, Search, Stepper, Swipe, SwipeItem, Grid, GridItem, Icon, Tag, List, Cell, Tabbar, TabbarItem, Pagination, DropdownMenu, DropdownItem, Sidebar, SidebarItem, Empty, Toast, Row, Col, Popup, Form, Field, GoodsAction, GoodsActionIcon, GoodsActionButton, Dialog, Sku, Checkbox, CheckboxGroup, Card, SubmitBar, SwipeCell,Lazyload  } from "vant";


// import "vant/lib/button/style";
// import "vant/lib/search/style";
// import "vant/lib/stepper/style";


// 注册组件
Vue.use(Button);
Vue.use(Search);
Vue.use(Stepper);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Icon);
Vue.use(Tag);
Vue.use(List);
Vue.use(Cell);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Pagination);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Empty);
Vue.use(Toast);
Vue.use(Row);
Vue.use(Col);
Vue.use(Popup);
Vue.use(Form);
Vue.use(Field);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Dialog);
Vue.use(Sku);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Card);
Vue.use(SubmitBar);
Vue.use(SwipeCell);

// 图片懒加载
Vue.use(Lazyload, {
    lazyComponent: true,
    loading:require("../assets/loading.gif")
  });